#ifndef BOX_H
#define BOX_H

#include <iostream>
using namespace std;

class Box
{
protected:
    int *store = nullptr;
    int width = 0;
    int height = 0;

public:
    Box(int width, int height)
        : width(width), height(height)
    {
    }
    Box()
        : width(0), height(0)
    {
    }
    virtual ~Box()
    {
    }

    int get_width() { return width; }
    int get_height() { return height; }
    int *get_store() // 获取容器空间
    {
        if (store != nullptr)
            return store;
        return nullptr;
    }
};

#endif